import PySimpleGUI as sg


# 装饰按钮
def GraphicButton(text: str, key: str, image_data):
    text = text.replace('_', ' ')
    button = sg.Button('', image_data=image_data, button_color=('white', '#F1F1F1'), font='Any 15', key=key,
                       border_width=1)
    text = sg.Text(text, font='Any 10', size=(15, 1), justification='center', )
    return sg.Column([[button], [text]], element_justification='c')


# 各界面的图片按钮图像
base64_biaoqian = 'iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAccSURBVHhe7ZzdSxVPGMfHykwtszSJoDe8EsMbowwCxbuQIOgi6iqK6E/oQjDBLjLvvBSluulNEE4cQS+8tSwIIqqb3g0trUgrTa1O8332mXP27afnuDP7O52zH3jY2Z2zu2e+OzPPzOzMFiQkImLVrOFtxCpJKwd++vRJvHv3Tnz9+lWsWZO7misptm3bJnbs2CG2bt1K+8sCAf+L7u7uxPbt23HVvLQ9e/Yk7ty5w2r44yugzHG+F8xXk7mRlfHiEVAWVd+L5Ltt3LiRFXLiqQMLCgo45GXdunXJeiJXQfp//frFe04aGhrEvXv3eM/CIeCtW7fEyZMnec+ivLxcxGIxUV9fL0pKSnwFxLFcERZO8sePH2JgYECcPn2aj6a4f/++OHjwIO9JIKCipqYGKjgs33HrcezYMY6xSLZJfv78KZ4/f857Frdv3+aQoJy5efNmcu1uw/ETJ07wL3OLy5cvc8hibGyMQwwLmRgfH/eo/eHDB4rr7+/3xPlZZ2cn/T6XePTokSONRUVFHGORzIFLS0scSrF+/Xra3r17l7YrEY/HOZQ7VFRUcMgCDsbuZJIC+nlfKTBt7b2Ps2fPUs/k1atXYmpqSly4cIFjlvfg/yp//vzhUAp7OjPul/3+/Zueyt69e6nLU1payjG5KeBKZCygypUKvyeUT2QsYHFxMYcsZAudQ/lJWgKi2CrgUKqrq4XsaNO2q6uLY6wKNt9IS0AM7SgmJibIgbx9+5a2Hz9+5Bghdu7cyaE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TcdrrDtgDr6uqwRAPvCVslLy8PSy5Onz7NFixYgFPe8f37dyy5ePz4Mbt27RpOEfAT2SBmroFLly7VeOXSw91LhP3790dXA8uXL9f4YHS+mh07dvDB5pGRkXzsH/T/YERWYWEhOhpQj+53N4DUtgAB8ZokPH/+XHj58iXXixcvhHfv3uFcfWDMIXjly8HYbD2g/6berv379+NcF+r5ai1cuFCor69Ht9avh60B+hPqjVBpzPbv37818/R09+5dvgyM3JfXHz16lNerCZoAAapfJ71MI6+LiopSTKsFL22XlpYq6pYsWcLXoyaonsbAw1s18FD106dPOOVCvM2DA4eVlJSwYcOGYW0DM2fO5A2HvEXW+/GLoDoCAbjGqrcxNjZWMa1+ox3GScvnS4KhbVIZfueBIuieB8Ijf/iJKDnqI1C8JmLJRdeuXXknHIaPyJH74CsGClsDhF682Iry71JA4tHKx8x4orKyknvly4lHFs71jNgVYidPnsQpLfBFkxp4yOruWzv4J8B4HQ14JBrCzCm8cuVKjVcS9Mf0SE1NJZcBwRMVM8BDA2o9evfhwKlTp8hl9E5h2wIcPny4xivXrVu30KmE8spllgMHDiha3d27d+McfebPn6/4TNCdO3dwrhLbAvT0NOb8+fPoVEJ55fIW8RTEkjGys7P5g9309HT+ezd6BCxAXzzOcgKmGhHRj6UGqLr/CcutsLcBBkvwpgJUD+sAkpOTsaRE/VhIjbrP1VgxfQRC/0r6cdiioiKs1QLP5WBsCwhuiUAwqBLGxsBbP0OGDEGnkszMTP4XvPLlgBUrVvC/TsL2X7CUDxICIBAjo6zUdwsQvBOxPcBgx3Ij8r8TCtAioQAtwdg/WiItxxdjnJsAAAAASUVORK5CYII='

sg.ChangeLookAndFeel('Default1')

# 主窗口界面
Main_layout = [
    [sg.Sizer(0, 40)],
    [sg.Sizer(80, 20), GraphicButton('标签打印', '-biaoqian-', image_data=base64_biaoqian), sg.Sizer(30, 0),
     GraphicButton('入库管理', '-ruku-', image_data=base64_ruku)],
    [sg.Sizer(0, 30)],
    [sg.Sizer(80, 20), GraphicButton('出库管理', '-chuku-', image_data=base64_chuku), sg.Sizer(30, 0),
     GraphicButton('问题件管理', '-wenti-', image_data=base64_wenti)],
    [sg.Sizer(0, 40)]
]
